<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('goods', function (Blueprint $table) {
            $table->increments('goods_id')->comment('主键');
            $table->string('goods_name')->comment('商品名称');
            $table->integer('cat_id')->comment('栏目id');
            $table->integer('brand_id')->comment('品牌id');
            $table->integer('goods_sn')->comment('货号');
            $table->integer('goods_number')->comment('商品数量');
            $table->integer('shop_price')->comment('现价');
            $table->integer('market_price')->comment('市场价');
            $table->string('shop_img')->comment('商品图片');
            $table->string('shop_describe')->comment('商品描述');
            $table->integer('click_count')->comment('点击量');
            $table->boolean('shop_hot')->comment('是否为热门');
            $table->string('inputtime')->comment('发布时间');
            $table->string('updatetime')->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('goods');
    }
}
